from api.login_api import LoginApi


def get_headers(body):
    resp = LoginApi.login(body)

    token = "Bearer " + resp.json().get("data")
    headers = {"Content-Type":"application/json","Authorization":token}

    return headers
def get_headers_no_content(body):
    resp = LoginApi.login(body)

    token = "Bearer " + resp.json().get("data")
    headers = {"Authorization": token}
    return headers

if __name__ == '__main__':
    body = {"mobile": "13800000002", "password": "123456"}
    print(get_headers_no_content(body))